package com.uwo.house.service;

import com.uwo.house.beans.request.MeasureCenterReq;
import com.uwo.house.beans.request.MeasureCenterSurveyReq;
import com.uwo.house.beans.response.MeasureOrderResp;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by PHS on 2017/7/19.
 */
public interface IMeasureCenterService {

    List<MeasureOrderResp> getMeasureOrderTo(String orderId, Date orderDateFrom, Date orderDateTo, int orderSts);

    /**
     * 测量人员上传测量信息资料
     */
    int addMeasureInfo(MeasureCenterReq measureCenterReq);

    /**
     * 测量人员上传调查信息
     */
    int addSurvey(MeasureCenterSurveyReq measureCenterSurveyReq);

    /**
     * 根据 userId 查询奖励列表
     */
    List<MeasureCenterReq> rewardList(String userId);

    /**
     * 测量人员领取奖励
     */
    int reward(MeasureCenterReq measureCenterReq);

    /**
     * 测量人员上传测量信息资料和调查信息
     */
    int addMeasureInfoAndSurvey(MeasureCenterReq measureCenterReq, MeasureCenterSurveyReq measureCenterSurveyReq);

    /**
     * 测量人员接单
     */
    int receiveOrder(String orderId,String userId);

    /**
     * 设计师端显示指派的订单列表
     */
    List<MeasureCenterReq> getMeasureOrderToDesign(String orderId, Date assignDateFrom,Date assignDateTo, Integer orderStatus,String userId);

    /**
     * 项目经理端显示客户确认的订单列表
     */
    List<MeasureCenterReq> getMeasureOrderToProjectManager(String orderId, String mobile, Integer projectStatus);

}
